package com.ojoin.trade.common.web.domain;

import java.net.URI;

public class LdapConfigRequest {

	String systemUsername;
	String systemPassword;
	URI ldapUri;
	boolean useStartTls;
	boolean trustAllCertificates;
	boolean activeDirectory;
	String searchBase;
	String searchPattern;
	String principal;
	String password;
	boolean testConnectOnly;
	String groupSearchBase;
	String groupIdAttribute;
	String groupSearchPattern;

	public String getSystemUsername() {
		return systemUsername;
	}

	public void setSystemUsername(String systemUsername) {
		this.systemUsername = systemUsername;
	}

	public String getSystemPassword() {
		return systemPassword;
	}

	public void setSystemPassword(String systemPassword) {
		this.systemPassword = systemPassword;
	}

	public URI getLdapUri() {
		return ldapUri;
	}

	public void setLdapUri(URI ldapUri) {
		this.ldapUri = ldapUri;
	}

	public boolean isUseStartTls() {
		return useStartTls;
	}

	public void setUseStartTls(boolean useStartTls) {
		this.useStartTls = useStartTls;
	}

	public boolean isTrustAllCertificates() {
		return trustAllCertificates;
	}

	public void setTrustAllCertificates(boolean trustAllCertificates) {
		this.trustAllCertificates = trustAllCertificates;
	}

	public boolean isActiveDirectory() {
		return activeDirectory;
	}

	public void setActiveDirectory(boolean activeDirectory) {
		this.activeDirectory = activeDirectory;
	}

	public String getSearchBase() {
		return searchBase;
	}

	public void setSearchBase(String searchBase) {
		this.searchBase = searchBase;
	}

	public String getSearchPattern() {
		return searchPattern;
	}

	public void setSearchPattern(String searchPattern) {
		this.searchPattern = searchPattern;
	}

	public String getPrincipal() {
		return principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public boolean isTestConnectOnly() {
		return testConnectOnly;
	}

	public void setTestConnectOnly(boolean testConnectOnly) {
		this.testConnectOnly = testConnectOnly;
	}

	public String getGroupSearchBase() {
		return groupSearchBase;
	}

	public void setGroupSearchBase(String groupSearchBase) {
		this.groupSearchBase = groupSearchBase;
	}

	public String getGroupIdAttribute() {
		return groupIdAttribute;
	}

	public void setGroupIdAttribute(String groupIdAttribute) {
		this.groupIdAttribute = groupIdAttribute;
	}

	public String getGroupSearchPattern() {
		return groupSearchPattern;
	}

	public void setGroupSearchPattern(String groupSearchPattern) {
		this.groupSearchPattern = groupSearchPattern;
	}

	
	public LdapConfigRequest(String systemUsername, String systemPassword,
			URI ldapUri, boolean useStartTls, boolean trustAllCertificates,
			boolean activeDirectory, String searchBase, String searchPattern,
			String principal, String password, boolean testConnectOnly,
			String groupSearchBase, String groupIdAttribute,
			String groupSearchPattern) {

		this.systemUsername = systemUsername;
		this.systemPassword = systemPassword;
		this.ldapUri = ldapUri;
		this.useStartTls = useStartTls;
		this.trustAllCertificates = trustAllCertificates;
		this.activeDirectory = activeDirectory;
		this.searchBase = searchBase;
		this.searchPattern = searchPattern;
		this.principal = principal;
		this.password = password;
		this.testConnectOnly = testConnectOnly;
		this.groupSearchBase = groupSearchBase;
		this.groupIdAttribute = groupIdAttribute;
		this.groupSearchPattern = groupSearchPattern;

	}
}
